<script setup lang="ts">
import { DiaryUnitVData } from "@/vdata/DiaryUnitVData"
import { ref } from "vue";
let props = defineProps({diaryUnit:DiaryUnitVData})
</script>

<template>
    <el-input v-model="props.diaryUnit!.subject" maxlength="100" placeholder="Please input" clearable type="text" />

    <!-- content 输入效果是有一个最小值,然后自动变高-->
    <el-input v-model="props.diaryUnit!.content" placeholder="Please input" :autosize="{ minRows: 2 }" show-word-limit
        type="textarea" />
</template>

<style></style>